home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
CRS
/
crs55.d81
/
mathquiz.prg
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2009-10-10
|
3KB
|
110 lines
100 REM 2/28/85
105 REM BY ROY LIESEGANG
110 POKE53280,6:POKE53281,12:POKE646,2
115 PRINT"[147]"
120 PRINTTAB(10):PRINT" [223][169] [146] "
125 PRINTTAB(10):PRINT" [146] "
130 PRINTTAB(10):PRINT" [146][223][146][169] [146] "
135 PRINTTAB(10):PRINT" [146] [146] [146] "
140 PRINTTAB(10):PRINT" [146] [146] [146] "
145 PRINT"[145][145][145][145][145][145]"
150 PRINTTAB(15):PRINT" [146] "
155 PRINTTAB(15):PRINT" [146] [146] [146] "
160 PRINTTAB(15):PRINT" [146] "
165 PRINTTAB(15):PRINT" [146] [146] [146] "
170 PRINTTAB(15):PRINT" [146] [146] [146] "
175 PRINT"[145][145][145][145][145][145]"
180 PRINTTAB(20):PRINT" [146] "
185 PRINTTAB(20):PRINT"[146] [161][146][161][146] [146] "
190 PRINTTAB(20):PRINT"[146] [161][146][161][146] [146] "
195 PRINTTAB(20):PRINT"[146] [161][146][161][146] [146] "
200 PRINTTAB(20):PRINT"[146] [161][146][161][146] [146] "
205 PRINT"[145][145][145][145][145][145]"
210 PRINTTAB(25):PRINT" [146] [146] [146] "
215 PRINTTAB(25):PRINT" [146] [146] [146] "
220 PRINTTAB(25):PRINT" [146] "
225 PRINTTAB(25):PRINT" [146] [146] [146] "
230 PRINTTAB(25):PRINT" [146] [146] [146] "
235 PRINT:PRINT
240 PRINTTAB(10):PRINT" [146] [146] [146] [146] [146] [146] [146] [146] "
245 PRINTTAB(10):PRINT" [146] [146] [146] [146] [146] [146] [146] [161][146][161][146] [146] [146] [146] [169][146][169][146] "
250 PRINTTAB(10):PRINT" [146] [146] [146] [146] [146] [146] [146] [161][146][161][146] [146] [146] [169][146][169][146] [146] "
255 PRINTTAB(10):PRINT" [146] [170] [146] [146] [146] [146] [146] [161][146][161][146] [146] [169][146][169][146] [146] [146] "
260 PRINTTAB(10):PRINT" [146] [146] [146] [146] [146] [146] "
265 PRINT:PRINT
270 GOSUB630
280 PRINT"[147]":POKE 646,0
285 PRINT"MATH QUIZ[146]"
290 PRINTTAB(5)
295 A$="YOU WILL GET 12 MULTIPLICATION":GOSUB625
300 PRINT:PRINT:PRINTTAB(5)
305 A$="PROBLEMS TO SOLVE...":GOSUB625
310 PRINT:PRINT:PRINTTAB(5)
315 A$="PICK THE TIMES-TABLE THAT YOU":GOSUB625
320 PRINT:PRINT:PRINTTAB(5)
325 A$="WISH TO PRACTICE (1-9)":GOSUB625
330 PRINT:PRINT:PRINTTAB(5)
335 A$="AND HIT RETURN[146] ****":GOSUB625:INPUT X
400 SC=0
415 IF X=>10 GOTO370
420 FOR N=1TO 12
425 Y=INT(RND(1)*10)+1
430 PRINT"[147]** MULTIPLYING GAME [144]**"
435 PRINT"[184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][144]"
440 J=N
445 PRINT"QUESTION #";J
450 PRINT"WHAT IS "X"TIMES"Y;:INPUT A
455 IF A=(X*Y) THENGOTO490
460 POKE54296,15:POKE54277,45:POKE54278,165
465 POKE54276,33:POKE54273,6:POKE64272,5
470 FORT=1TO200:NEXT:POKE54276,32:POKE54273,0:POKE54275,0
475 PRINT"NOPE![144] THATS WRONG" :PRINT
480 PRINT : PRINT""X"TIMES"Y"="Y*X: FOR T = 1TO4000:NEXT
485 GOTO515
490 S=54272:POKES+24,15:POKES+1,110:POKES+5,9:POKES+6,9:POKES+4,17:POKES+4,16
495 PRINT"[164][164][164][164][164][164][164][164][164][164][164][164][164]"
500 IF A=(X*Y) THENSC=SC+1: PRINT"* VERY GOOD *[144][146]"
505 PRINT"[163][163][163][163][163][163][163][163][163][163][163][163][163]"
510 FORT=1 TO 1200: NEXT
515 NEXT N
520 PRINT"[147]YOUR SCORE WAS";SC;"OUT OF 12."
525 PRINT"*** THAT'S";INT((SC/12)*100);"% PERCENT CORRECT.***"
530 PRINT"DO YOU WANT TO PLAY AGAIN (Y/N)? "
535 GET AN$: IF AN$="" THEN535
540 IF AN$ = "Y" THEN280
545 IF AN$="N" THENPRINT"[147]HAVE A NICE DAY,"
550 PRINT
555 PRINT"GOOD BYE[160]!":FOR T=1TO4000:NEXT:SYS64759
620 END
625 FORA=1 TO LEN(A$):PRINTMID$(A$,A,1);:FOR B=1TO75 :NEXTB,A:RETURN
630 REM *** THE SPORT OF KINGS
635 REM *** PORTERS PROGRAMS
640 S=54272:B=40
645 FOR X=0TO24:POKE S+X,0:NEXT X
650 POKE S+5,54:POKE S+6,128
655 POKE S+24,15
660 REM *** BLOW THE BUGLE
665 READ L,H,D
670 IF D=0 THEN705
675 POKE S,L:POKE S+1,H
680 POKE S+4,33
685 FOR T=1TO (D*B):NEXT T
690 POKE S+4,32
695 FOR T=1TO(D*B/2):NEXT T
700 GOTO660
705 REM *** THEY'RE OFF
710 FOR X=0 TO 24:POKE S+X,0:NEXT X
715 RETURN
720 DATA 96,22,2,223,29,2,162,37,2
725 DATA 193,44,2,193,44,1,193,44,1
730 DATA 193,44,2,162,37,2,162,37,1
735 DATA 162,37,1,162,37,2,223,29,2
740 DATA 162,37,2,223,29,2,96,22,6
745 DATA 96,22,2,223,29,2,162,37,2
750 DATA 193,44,2,193,44,1,193,44,1
755 DATA 193,44,2,193,44,2,162,37,2
760 DATA 223,29,2,96,22,2,96,22,1
765 DATA 96,22,1,96,22,2,223,29,2
770 DATA 223,29,1,223,29,1,223,29,2
775 DATA 223,29,9,0,0,0